<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a style="color: #000000;" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">登录</h1>
		</header>
		<div class="mui-content">
			<div style="height: 1.875rem;margin-top: 80px;font-size: 38px;text-align: center;">
				<b>login...</b>
			</div>
			<div style="margin-top: 60px;padding: 20px;">
				<label style="font-weight: 700;">账号</label>
				<div class="mui-input-row" style="margin-top: 10px;">
					<input class="zh" type="text" class="mui-input-clear" placeholder="请输入账号">
				</div>
				<label style="font-weight: 700;margin-top: 20px;display: block;">密码</label>
				<div class="mui-input-row" style="margin-top: 10px;">
					<input class="mima" type="password" class="mui-input-clear" placeholder="请输入密码">
				</div>
			</div>
			<div style="display: flex;justify-content: center;align-content: center;padding: 10vw;">
				<button type="button" class="denglu"
					style="height: 40px;background-color: red;border: none;line-height: 8px;width: 80vw;color: white;font-weight: 700;font-size: 18px;"
					class="mui-btn mui-btn-blue mui-btn-block">登录</button>
			</div>
		</div>
		<script src="js/mui.js"></script>
		<script type="text/javascript">
			mui.init()
			function query(e) {
				return document.querySelector(e)
			}
			query(".denglu").addEventListener("tap", function() {
				if (query(".mima").value === "123456" && query(".zh").value === "admin") {
					localStorage.setItem("admin", "admin")
					window.location.href="wd.html"
				} else if(query(".mima").value === "" || query(".zh").value === ""){
					mui.alert('密码或账号不能为空', '小提示', '确定', function(e) {
						e.index
					}, 'div')
				}else {
					mui.alert('密码或账号错误，请重新输入', '小提示', '确定', function(e) {
						e.index
					}, 'div')
				}
			})
		</script>
	</body>

</html>
